from django.conf.urls.defaults import patterns, include
from settings import STATIC_PATH

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # include the url mapping of sub apps, such as IPService/urls.py
    # (r'^ipservice/', include('IPService.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/(.*)', admin.site.root),
    
    # Static resources using django static servlet
    #(r'^static/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.STATIC_PATH}),
    
    (r'^ipcat/', include('ipcat.urls')),
    (r'^/?$', 'django.views.static.serve', {'path':'IPCat.html', 'document_root':STATIC_PATH}),
    (r'^(?P<path>.*)$', 'django.views.static.serve', {'document_root':STATIC_PATH}),
)
